package com.pingguopifa.exception;

public enum ErrMessage {

	INVALID_PARAM(0,"参数错误"),
	BAD_ROLE(8,"不存在的权限"),
	OTHER_ERR(-1,"其他错误");
	
	private int code;
	private String message;
	
	private ErrMessage(int code, String message) {
		this.code = code;
		this.message = message;
	}
	
	public int getCode() {
		return code;
	}
	public String getMessage() {
		return message;
	}
	@Override
	public String toString() {
		return "code : " + this.code + " message: " + this.message;
	}
}
